package com.oocl.im.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class MsgPackage implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Operation opeartion;
	private String sender;
	private String receiver;
	private String content;
	private Date date;
	private HashMap<String, Boolean> onlineMap;

	public Operation getOpeartion() {
		return opeartion;
	}

	public void setOpeartion(Operation opeartion) {
		this.opeartion = opeartion;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Map<String, Boolean> getOnlineMap() {
		return onlineMap;
	}

	public void setOnlineMap(HashMap<String, Boolean> onlineMap) {
		this.onlineMap = onlineMap;
	}

	public MsgPackage(Operation opeartion, String sender, String receiver, String content, Date date,
			HashMap<String, Boolean> onlineMap) {
		super();
		this.opeartion = opeartion;
		this.sender = sender;
		this.receiver = receiver;
		this.content = content;
		this.date = date;
		this.onlineMap = onlineMap;
	}

	@Override
	public String toString() {
		return "MsgPackage [opeartion=" + opeartion + ", sender=" + sender + ", receiver=" + receiver + ", content="
				+ content + ", date=" + date + ", onlineMap=" + onlineMap + "]";
	}

	public MsgPackage() {
		super();
	}

}
